
import { Switch } from '@tarojs/components';
import { SwitchProps } from '@tarojs/components/types/Switch'
import { DynamicColors } from '@/utils/DarkMode';

interface IProps extends SwitchProps {
  tintColor?: string;
}

const SwitchComponent = (props: IProps) => {
  const { tintColor } = props;
  return (
    <Switch
      {...props}
      color={tintColor || DynamicColors.tintColor.value}
    />
  );
};

export default SwitchComponent;
